fix(cli): preserve terminal scrollback buffer during run command#2042
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughA changelog entry documents a patch release fixing a CLI bug where the terminal scrollback buffer was being cleared. The UI utility's terminal clear function is updated to preserve scrollback by using a screen-only clear ANSI sequence instead of a full reset command. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@vrcprl @maxprilutskiy any feedback or improvements needed in this ?? |
|
@gmpaliwal07 great work! 👏 |
|
@maxprilutskiy thank you |
Co-authored-by: Max Prilutskiy <5614659+maxprilutskiy@users.noreply.github.com>
Summary
Replace
\x1Bcwith\x1b[2J\x1b[Hto preserve terminal scrollback buffer duringlingo.dev run.Changes
\x1Bcwith screen-only clear\x1b[2J\x1b[HinrenderClear()inpackages/cli/src/cli/utils/ui.tsTesting
lingo.dev run— scrollback preserved after fix ✅Visuals
Before fix (scrollback wiped):
https://github.com/user-attachments/assets/aac277e5-f4d6-4d54-b3ed-3c73f595c5c6
After fix (scrollback preserved):
https://github.com/user-attachments/assets/fae72cea-051d-4d07-88f4-05b942d338a5
Checklist
Closes #2011
Summary by CodeRabbit